package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.ChannelDTO;
import com.heima.model.admin.pojo.AdChannel;
import com.heima.model.common.dtos.ResponseResult;

import java.util.List;

/**
 * @author by jojo
 * @Date 2022/2/25
 * @Description
 */
public interface AdChannelService extends IService<AdChannel> {
    ResponseResult<List<AdChannel>> findByNameAndPage(ChannelDTO dto);

    ResponseResult addChannel(AdChannel channel);

    ResponseResult updateChannel(AdChannel channel);

    ResponseResult deleteById(Long id);
}
